#ifndef TRIANGLE_H
#define TRIANGLE_H

#include<Eigen/Eigen>
using namespace Eigen;

class Triangle
{
public:
    Triangle();

    Vector3f v[3];
    Vector3f color[3];
    Vector3f normal[3];
    Vector2f tex_coords[3];

    Vector3f a() const{return v[0];}
    Vector3f b() const{return v[1];}
    Vector3f c() const{return v[2];}

    void setVertex(int index,Vector3f vertex);
    void setNormal(int index,Vector3f normal);
    void setColor(int index,float r, float g,float b);
    void setTexCoord(int index,float s, float t);
    //std::array<Vector4f,3>toVector4() const;

};

#endif // TRIANGLE_H
